#include <stdio.h>
#include <stdlib.h>
#include "ble.h"

int main(int argc, char *argv[]) {
    if (argc != 2) {
        printf("Usage: %s <option>\n", argv[0]);
        printf("Options:\n");
        printf("  1 - Bitwise Method\n");
        printf("  2 - Pointer Method\n");
        printf("  3 - Bit-field Method\n");
        printf("  4 - Standard Library Method\n");
        printf("  5 - Union Method\n");
        return 1;
    }
    
    int option = atoi(argv[1]);
    switch (option) {
        case 1:
            check_endian_bitwise();
            break;
        case 2:
            check_endian_pointer();
            break;
        case 3:
            check_endian_bit_field();
            break;
        case 4:
            check_endian_standard();
            break;
        case 5:
            check_endian_union();
            break;
        default:
            printf("Invalid option. Use 1, 2, 3, 4, or 5.\n");
            return 1;
    }
    return 0;
}

